Page({
  data: {
    arr: [
      { id: 1001, name: "html" },
      { id: 1002, name: "css" },
      { id: 1003, name: "js" }
    ]
  },
  handleConfirm(e){
    var name = e.detail.value;
    var arr = this.data.arr;
    arr.unshift({id:1004,name});
    this.setData({
      arr
    })
  }
})
